package com.twu.biblioteca.actions;

import com.twu.biblioteca.controller.LibraryController;
import com.twu.biblioteca.domain.Withdrawable;

/**
 * Created by pnunnerl on 23/06/2014.
 */
public class ReturnItemCommand<T extends Withdrawable> implements BibliotechaCommand {
    private LibraryController<T> itemController;

    public ReturnItemCommand(LibraryController<T> itemController){

        this.itemController = itemController;
    }
    @Override
    public void execute(String parameter) {
        itemController.returnItem(parameter);
    }
}
